package pl.edu.pk.cc.common.dto;

import pl.edu.pk.cc.common.util.CCPermissions;

public class CCLoginDataDTO implements CCResourceDTO {
	private Long id;
	private String username;
	private String password;
	private String email;
	private CCPermissions permissions;
	private CCWorkerDTO worker;

	/*
	 * public CCLoginDataDTO() { } public CCLoginDataDTO(String username, String
	 * password, String email) { this.username = username; this.password =
	 * password; this.email = email; }
	 */
	
	public CCLoginDataDTO() { }
	
	

	

	public CCLoginDataDTO(String username, String password, String email,
			CCPermissions permissions) {
		super();
		this.username = username;
		this.password = password;
		this.email = email;
		this.permissions = permissions;
	}

	@Override
	public String toString() {
		return username + " " + email;
	}

	public Long getId() {
		return id;
	}
	
	private void setId(Long id){
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public CCWorkerDTO getWorker() {
		return worker;
	}

	public void setWorker(CCWorkerDTO worker) {
		this.worker = worker;
	}

	public CCPermissions getPermissions() {
		return permissions;
	}

	public void setPermissions(CCPermissions permissions) {
		this.permissions = permissions;
	}





	public void updateLogin(String email,
			CCPermissions permissions) {
		this.email = email;
		this.permissions = permissions;
	}

}
